package rifa.controller;

import java.io.BufferedReader;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;

import javax.faces.bean.ManagedBean;
import javax.faces.bean.RequestScoped;
import javax.faces.context.FacesContext;

import rifa.entidade.Galeria;
import rifa.entidade.Rifa;
import rifa.persistence.facade.RifaFacade;

@ManagedBean
@RequestScoped
public class RifaBean {
	
	Galeria galeria;
	private RifaFacade rifaFacade;
	private Rifa rifa;
	
	public RifaBean(){
		this.galeria = new Galeria();
		this.rifaFacade = new RifaFacade();
	}
	
	public String prepararRifa(){
		rifa = rifaFacade.buscarRifa(1l);
		return "comprarCartao";
	}

	public Galeria getGaleria() {
		return galeria;
	}

	public void setGaleria(Galeria galeria) {
		this.galeria = galeria;
	}

	public Rifa getRifa() {
		return rifa;
	}

	public void setRifa(Rifa rifa) {
		this.rifa = rifa;
	}
}
